﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FriendTest.FriendService.UserData>" %>


   
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=Model.userName %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%=Model.userName %></h2>
    <div align=left>
        <img src="../../Content/<%=Model.userName %>.jpg" align="left" 
            style="height: 44px; width: 52px"/>
        <p>
            <b>姓名：</b><%=Model.userName %></br>
            <b>邮箱：</b><%=Model.userEmail %>
        </p>
        <span id = "follow">
        <%if ((bool)ViewData["IsFriend"]){%>
            <%=Ajax.ActionLink("取消关注","DeleteFriend",new{userId = Model.id},new AjaxOptions{UpdateTargetId = "follow"})%>
          <%}else{ %>
            <%=Ajax.ActionLink("关注", "AddFriend", new { userId = Model.id }, new AjaxOptions { UpdateTargetId = "follow" })%>
        <%} %>
        </span>
    </div>
    <%Html.RenderAction("ShowUserStatusByID", new { userId = Model.id }); %>
</asp:Content>
